﻿@model CID.Web.Models.Users.UserViewModel

<div id="Tabs">
    <ul>
        <li><a href="#General">General</a></li>
        <li><a href="#Roles">Roles</a></li>
    </ul>
    <div id="General">
        <div class="display-label">@Html.LabelFor(m => m.Name)</div>
        <div class="display-field">
            @Html.DisplayFor(m => m.Name)
        </div>

        <div class="display-label">@Html.LabelFor(m => m.UserName)</div>
        <div class="display-field">
            @Html.DisplayFor(m => m.UserName)
        </div>

        <div class="display-label">@Html.LabelFor(m => m.Email)</div>
        <div class="display-field">
            @Html.DisplayFor(m => m.Email)
        </div>

        <div class="display-label">@Html.LabelFor(m => m.Enabled)</div>
        <div class="display-field">
            @Html.DisplayFor(m => m.Enabled)
        </div>
    </div>

    <div id="Roles">
        <div class="display-field">
            @foreach (var userRoleAssignment in @Model.AssignedRoles.Where(x => x.Assigned))
            {
                @userRoleAssignment.UserRole.ToString();<br />
            }
        </div>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $("#Tabs").tabs();
    });
</script>